using System;
using System.ComponentModel;
using FreeSql.DataAnnotations;

namespace SchoolApp_Material.Models;

/// <summary>
/// 数据基础
/// </summary>
public class DataBase
{
    /// <summary>
    /// 标识
    /// </summary>
    [Column(Name = "id", IsIdentity = true, IsPrimary = true)]
    public int Id { get; set; }

    /// <summary>
    /// 是否已删除
    /// </summary>
    [Column(Name = "is_deleted", IsNullable = false)]
    public bool IsDeleted { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column(Name = "create_time", IsNullable = false)]
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人编号
    /// </summary>
    [Column(Name = "create_operator_code", IsNullable = false)]
    public string? CreateOperatorCode { get; set; }

    /// <summary>
    /// 创建人姓名
    /// </summary>
    [Column(Name = "create_operator_name", IsNullable = false)]
    public string? CreateOperatorName { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [Column(Name = "update_time", IsNullable = true)]
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 更新人编号
    /// </summary>
    [Column(Name = "update_operator_code", IsNullable = false)]
    public string? UpdateOperatorCode { get; set; }

    /// <summary>
    /// 更新人姓名
    /// </summary>
    [Column(Name = "update_operator_name", IsNullable = false)]
    public string? UpdateOperatorName { get; set; }
}